package com.henghai.zhenxuan.data.api;

import androidx.annotation.NonNull;

import com.hjq.http.config.IRequestApi;
import com.hjq.http.config.IRequestType;
import com.hjq.http.model.BodyType;

public class RegisterApi implements IRequestApi, IRequestType {

    private String username;
    private String password;
    private String invitationCode;
    private String code;

    public RegisterApi(String username, String password, String invitationCode, String code) {
        this.username = username;
        this.password = password;
        this.invitationCode = invitationCode;
        this.code = code;
    }



    @NonNull
    @Override
    public String getApi() {
        return "/register";
    }

    @NonNull
    @Override
    public BodyType getBodyType() {
        return BodyType.JSON;
    }
}
